

            var upadateHeight = null;

            $(document).ready(function(){
                $('main .recruit .emplyList .item.postn .itemHead').click(function(){
                    if($(this).parent()[0].className.indexOf('clicked') < 0){
                        $(this).next()[0].style.height = $(this).next()[0].children[0].offsetHeight + 'px';
                        $(this).parent().addClass('clicked');
                    }else{
                        $(this).next()[0].style.height = '';
                        $(this).parent().removeClass('clicked');
                    }
                })
                var postnNamesLength = $('main .recruit .emplyList .item.name .itemHead span').length - 1;
                for(var i = 0;i < $('main .recruit .emplyList .item.postn .itemHead span').length;i++){
                    var ind = i;
                    for(var n = 0;n < postnNamesLength;n++){
                        var title = $('main .recruit .emplyList .item.name .itemHead span:eq(' + (postnNamesLength - n - 1) + ')').text() +":";
                        var val = '<span>' + $('main .recruit .emplyList .item.postn .itemHead span:eq(' + (postnNamesLength - n - 1) + ')').text() + '</span>';
                        var p = '<p class="hidden">' + title + val +'</p>';
                        $('main .recruit .emplyList .item.postn:eq(' + ind + ') .details .content').prepend(p);
                    }
                }

                upadateHeight = setInterval(function(){
                    if(window.innerWidth != consultWidth){
                        for(var h = 0;h < $('main .recruit .emplyList .item.postn.clicked').length;h++){
                            var actualH = $('main .recruit .emplyList .item.postn.clicked:eq(' + h +') .itemHead').next()[0].children[0].offsetHeight;
                            var current = $('main .recruit .emplyList .item.postn.clicked:eq(' + h +') .itemHead').next()[0].offsetHeight;
                            if(current != actualH){
                                $('main .recruit .emplyList .item.postn.clicked:eq(' + h +') .itemHead').next().height(actualH);
                            }
                        }
                        consultWidth = window.innerWidth;
                    }
                    
                },10)
            })